package com.hub.realtime.resource.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hub.realtime.common.annotation.Excel;
import com.hub.realtime.common.core.domain.BaseEntity;

/**
 * Flink版本信息对象 res_flink_versions
 *
 * @author wupeng
 * @date 2022-01-07
 */
@Data
@TableName("res_flink_versions")
public class ResFlinkVersions extends BaseEntity<ResFlinkVersions>
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    /** 本地存放的路径 */
    @TableField("local_path")
    @Excel(name = "本地存放的路径")
    private String localPath;

    /** 版本号 */
    @TableField("flink_version")
    @Excel(name = "版本号")
    private String flinkVersion;

    @TableField("remark")
    private String remark;

    @TableField("in_use")
    private boolean inUse;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("localPath", getLocalPath())
                .append("flinkVersion", getFlinkVersion())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}
